<?php echo $this->load->view('_inc/header')?>
<script>
    $(document).ready(function(){
       $('.listagem').hide(); 
       $('.seta').click(function(){
           $('.listagem').slideToggle(600);
       });
    });
</script>

<big><h2><?php echo $aluno->nome?></h2></big>
<table class="gradeamento espaca" style="width: 50%">
    <tr><td><?php echo form_label('Matrícula:'); echo $aluno->id?></td></tr>
    <tr><td><?php echo form_label('Curso:'); echo $aluno->curso?></td></tr>
    <tr><td><?php echo form_label('CPF:'); echo $aluno->curso?></td></tr>
    <tr><td><?php echo form_label('Telefone:'); echo $aluno->curso?></td></tr>
    <tr><td><?php echo form_label('E-mail:'); echo $aluno->curso?></td></tr>
</table>

<?php if ($materias){ ?>
    <h2 class="icone seta">Matérias</h2>
    <table class="listagem">
        <tr>
            <th>Matéria</th>
            <th>Créditos</th>
            <th>Situação</th>
        </tr>
        <?php foreach($materias as $materia){ ?>
            <tr>
                <td><?php echo $materia->nome?></td>
                <td><?php echo $materia->creditos?></td>
                <td><?php echo $materia->situacao?></td>
            </tr>
        <?php } ?>
    </table>
<?php } ?>

<?php echo $this->load->view('_inc/footer')?>